package cn.wolfcode.service;

import cn.wolfcode.domain.Classinfo;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.ClassinfoQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IClassinfoService {
    void save(Classinfo classinfo, Long[] ids);
    void update(Classinfo classinfo, Long[] ids);
    void delete(Long id);
    Classinfo get(Long id);
    List<Classinfo> listAll();

    /**
     * 获取查询结果,分页和高差
     * @param qo
     * @return
     */
    PageInfo<Classinfo> query(ClassinfoQueryObject qo);

    /**
     * 根据名称查询
     * @param name
     * @return
     */
    Classinfo selectByName(String name);
}
